<?php
/**
 * Created by PhpStorm.
 * User: kb130
 * Date: 2017/8/21
 * Time: 9:44
 */

namespace util\validate\rules;

/**
 * 验证值必须存在。null，'' 都是不存在
 *
 * Class Phone
 * @package validate\rules、
 */
class Required extends BaseRule
{
    public function verify()
    {
        return isset($this->value) && 0 !== strcmp($this->value, '') ? true : false;
    }
}